package arithmetic.functionTest.myStream;

import java.util.Arrays;
import java.util.List;

/**
 * @author jiangfeng
 * Created on 2020-04-26
 */
public class MainTest {
    public static void main(String[] args) {
        List<String> list =
                Arrays.asList("hello", "world", "qwr");

        MyStream<String> of = MyStream.of(list);
        System.out.println("1----");
        MyStream<String> map = of.map(a -> a + "214");
        MyStream<String> map1 = map.map(a -> a + "111");
        System.out.println("2----");
        map1.foreach(System.out::println);
    }
}
